<!DOCTYPE HTML>
<html>

	<head>
		<meta charset="utf-8">
		<title>天境棋牌</title>
		<meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="full-screen" content="true" />
		<meta name="screen-orientation" content="landscapeFlipped" />
		<meta name="x5-fullscreen" content="true" />
		<meta name="360-fullscreen" content="true" />

		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="cache-control" content="no-cache" />
		<meta http-equiv="expires" content="0" />
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
		<style type="text/css">
			html {
				height: 100%;
			}
			
			body {
				background-image: url(../splashBg.jpg);
				background-repeat: no-repeat;
				background-attachment: fixed;
				background-position: center;
				background-size: auto 100%;
				padding: 0;
				margin: 0;
			}
		</style>
	</head>

	<body>
		<!--<script>
        window.fbAsyncInit = function () {
            FB.init({
                appId: '527297480962638',
                autoLogAppEvents: true,
                xfbml: true,
                version: 'v3.2'
            });
        };

        (function (d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (d.getElementById(id)) { return; }
            js = d.createElement(s); js.id = id;
            js.src = "https://connect.facebook.net/en_US/sdk.js";
            fjs.parentNode.insertBefore(js, fjs);
        } (document, 'script', 'facebook-jssdk'));
    </script>-->
		<!--<script src="https://zjs.zdn.vn/zalo/sdk.js"></script>-->
		<div style="margin: auto;width: 100%;height: 100%;" class="egret-player" data-entry-class="Main" data-orientation="landscapeFlipped" data-scale-mode="fixedNarrow" data-frame-rate="30" data-content-width="1280" data-content-height="720" data-multi-fingered="2" data-show-paint-rect="true" data-show-fps="false" data-show-log="false" data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9">
		</div>
		<input id="foo" value="win" style="z-index:-1;opacity:0;width: 1px;height: 1px;background-size: 1px 1px;">
		<button id="copyBtn" class="btn" data-clipboard-target="#foo" style="z-index:-1;opacity:0;width: 1px;height: 1px;;background-size: 1px 1px;"></button>
		<!--<audio id="bgmusic" src="../click_btn.mp3" preload></audio>-->
		<!--<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript">
        document.addEventListener('DOMContentLoaded', function () {
            function audioAutoPlay() {
                var audio = document.getElementById('bgmusic');
                audio.load();
                audio.play();
                audio.pause();
                document.addEventListener("WeixinJSBridgeReady", function () {
                    audio.load();
                    audio.play();
                    audio.pause();
                }, false);
            }
            audioAutoPlay();
        });
</script>-->
		<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
		<script>
			 $(function () {
			     $("<div id='PromptWarnProcess' style='display:none'><iframe width='100%' height='100%' frameborder='0'  id='Preview'></iframe></div>").appendTo(document.body);
			     var tempele = document.createElement("div");
			     tempele.innerHTML = "<div id='paneloading' style='display:none;position:fixed;top:0px;left:0px;z-index:999999;width:100%;height:100%;background-color:lightgrey;filter:alpha(opacity=70);opacity:0.7;'><div style='z-index:9999999;width:300px;height:150px;position:fixed;bottom:0;left:50%; margin-left:-150px;margin-top:-75px;filter:alpha(opacity=100);opacity:1;'><div style='text-align:center' id='loadingpicture'></div><div id='loadingcontent' style='text-align:center;height:40px;'></div></div></div>";
			     //改82行上面这个height 确定这个位置，但是需要注意的一点是你要减去图片的高度和文字的高度。请看我给你发的图
			     document.body.appendChild(tempele.lastChild);
			     ShowLoading('哈哈');
			 });
			function ShowLoading(title) {
				document.getElementById("loadingpicture").innerHTML = "<img src='' />";
				document.getElementById("paneloading").style.display = "";
				document.getElementById("loadingcontent").innerHTML = title || "";
			}

			function HideLoading() {
				document.getElementById("paneloading").style.display = "none";
			}
			//ShowLoading('哈哈')
			var loadScript = function(list, callback) {
				var loaded = 0;
				var loadNext = function() {
					loadSingleScript(list[loaded], function() {
						loaded++;
						if(loaded >= list.length) {
							callback();
						} else {
							loadNext();
						}
					})
				};
				loadNext();
			};

			var loadSingleScript = function(src, callback) {
				var s = document.createElement('script');
				s.async = false;
				s.src = src;
				s.addEventListener('load', function() {
					s.parentNode.removeChild(s);
					s.removeEventListener('load', arguments.callee, false);
					callback();
				}, false);
				document.body.appendChild(s);
			};

			var xhr = new XMLHttpRequest();
			xhr.open('GET', './manifest.json?v=' + Math.random(), true);
			xhr.addEventListener("load", function() {
				var manifest = JSON.parse(xhr.response);
				var list = manifest.initial.concat(manifest.game);
				loadScript(list, function() {
					/**
					 * {
					 * "renderMode":, //Engine rendering mode, "canvas" or "webgl"
					 * "audioType": 0 //Use the audio type, 0: default, 2: web audio, 3: audio
					 * "antialias": //Whether the anti-aliasing is enabled in WebGL mode, true: on, false: off, defaults to false
					 * "calculateCanvasScaleFactor": //a function return canvas scale factor
					 * }
					 **/
					//开启纹理跨域
					egret.ImageLoader.crossOrigin = "anonymous";
					egret.runEgret({
						renderMode: "webgl",
						audioType: 0,
						calculateCanvasScaleFactor: function(context) {
							var backingStore = context.backingStorePixelRatio ||
								context.webkitBackingStorePixelRatio ||
								context.mozBackingStorePixelRatio ||
								context.msBackingStorePixelRatio ||
								context.oBackingStorePixelRatio ||
								context.backingStorePixelRatio || 1;
							return(window.devicePixelRatio || 1) / backingStore;
						}
					});
				});
			});
			xhr.send(null);
		</script>
	</body>

</html>